<template>
  <div>
    <GpBaseTable primary-key="id" :columns="columns" :url="url"
                 sync-data-url="/xcdhTrading/sectorCapitalFlow/syncSectorCapitalFlow"></GpBaseTable>

  </div>
</template>

<script>
export default {
  name: "capitalFlowSector",
  data(){
    return {
      columns: [
        {
          "title": "交易日期",
          "key": "tradeDate",
          search: true ,
          is: "el-date-picker" ,
          attrs:{
            width: 100 ,
            "value-format":"yyyyMMdd"
          }

        },
        {
          "title": "数据类型",
          "key": "contentType"
        },
        {
          "title": "DC板块代码",
          "key": "tsCode"
        },
        {
          "title": "板块名称",
          "key": "name",
          search: true ,
          op: "LIKE"
        },
        {
          "title": "板块涨跌幅（%）",
          "key": "pctChange",
          tableIs: "NumberColumn"
        },
        {
          key: 'showPrice' ,
          title: '股票价格',
          tableIs: "ShowGpPrice"
        },
        {
          "title": "今日主力净流入最大股",
          "key": "buySmAmountStock",
        },
        {
          "title": "主力净流入净额（元）",
          "key": "netAmount",
          tableIs: "BigNumberColumn"
        },
        {
          "title": "超大单净流入净额（元）",
          "key": "buyElgAmount",
          tableIs: "BigNumberColumn"
        },
        {
          "title": "大单净流入净额（元）",
          "key": "buyLgAmount",
          tableIs: "BigNumberColumn"
        },
        {
          "title": "中单净流入净额（元）",
          "key": "buyMdAmount",
          tableIs: "BigNumberColumn"
        },
        {
          "title": "小单净流入净额（元）",
          "key": "buySmAmount",
          tableIs: "BigNumberColumn"
        }
      ],
      url: "/xcdhTrading/sectorCapitalFlow/v2/listByPage"
    }
  }
}
</script>

<style scoped>

</style>
